using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 类描述
    /// </summary>
    [Serializable]
    [Route("/api/bagmanage", "POST,PUT")]
    public class BagManage : EntityBase<BagManage>
    {
        /// <summary>
        /// 编号
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String Name { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [StringLength(50)]
        public String ContractCode { get; set; }
        /// <summary>
        /// 合同名称
        /// </summary>
        [StringLength(50)]
        public String ContractName { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        [Index]
        public DateTime StartDateTime { get; set; }
        /// <summary>
        /// 截止日期
        /// </summary>
        [Index]
        public DateTime EndDateTime { get; set; }
        /// <summary>
        /// 企业名称
        /// </summary>
        [StringLength(50)]
        public String CompanyName { get; set; }
        /// <summary>
        /// 企业ID
        /// </summary>
        public Guid? CompanyID { get; set; }

    }
}
